package com.aspose.cells;

class zaaw extends zbz {
   zaaw(byte[] var1) {
      this.c(6);
      this.a((short)(20 + var1.length));
      this.c = new byte[this.d()];
      this.c[19] = -1;
      System.arraycopy(var1, 0, this.c, 20, var1.length);
   }

   void a(int var1, byte var2, int var3, int var4, Object var5, boolean var6, byte var7) {
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1), 0, this.c, 0, 2);
      this.c[2] = var2;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var3), 0, this.c, 4, 2);
      this.c[14] |= var7;
      if (var6) {
         this.c[14] = (byte)(this.c[14] | 8);
      }

      switch(var4) {
      case 1:
         System.arraycopy(com.aspose.cells.b.a.zc.a((Double)var5), 0, this.c, 6, 8);
         break;
      case 2:
         this.c[6] = 1;
         this.c[8] = (byte)((Boolean)var5 ? 1 : 0);
         this.c[12] = -1;
         this.c[13] = -1;
         break;
      case 3:
         this.c[12] = -1;
         this.c[13] = -1;
         byte var8 = (Byte)var5;
         zst var9 = zst.h;
         if (zsk.b(var9) == var8) {
            this.c[6] = 3;
         } else {
            this.c[6] = 2;
            this.c[8] = var8;
         }
         break;
      case 4:
         this.c[6] = 0;
         this.c[12] = -1;
         this.c[13] = -1;
         break;
      case 5:
      default:
         this.c[6] = 3;
         this.c[12] = -1;
         this.c[13] = -1;
         break;
      case 6:
         System.arraycopy(com.aspose.cells.b.a.zc.a(zavz.a((Integer)var5)), 0, this.c, 6, 8);
      }

   }
}
